home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000124_icon-group-sender _Tue May 10 13:18:43 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 10 May 1994 15:00:42 MST
  2. Date: Tue, 10 May 94 13:18:43 PDT
  3. From: kwalker@sirtur.premenos.com (Ken Walker)
  4. Message-Id: <9405102018.AA11126@sirtur.premenos.com>
  5. To: eschen@molbio.cbs.umn.edu
  6. Subject: Re: IconImplementQues: WhenShouldIPollKeyboardForInterrupt
  7. Cc: icon-group@cs.arizona.edu
  8. X-Sun-Charset: US-ASCII
  9. Content-Length: 767
  10. Status: R
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12.  
  13. > From: "Art Eschenlauer" <eschen@molbio.cbs.umn.edu>
  14. > I am modifying the source code for mac standalone icon version 8. I would
  15. > like to poll the keyboard frequently to see if the user is trying to
  16. > interrupt the process (for instance, to get out of an infinite loop...).
  17.  
  18. There is a function pollevent() used in windowing versions of Icon.
  19. Presently it is under control of "#define Polling" which in turn is
  20. under control of "#define XIcon". I think you can turn on Polling
  21. independant of XIcon and supply your own pollevent() function, but
  22. I haven't tried it. I'm not sure how this will fit with a future
  23. version of Icon that does windowing on the MAC; you might have to
  24. do some reorganization of the code at that point.
  25.  
  26.    Ken Walker, kwalker@premenos.com
  27.